package com.ssish.saas.eccs;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.PropertySource;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@MapperScan(basePackages = {"com.ssish.saas.eccs"})
@ComponentScan(basePackages= {"com.ssish.saas.eccs"} )
@ServletComponentScan
//@EnableEurekaClient
//@EnableSwagger2
@EnableScheduling//开启定时任务
@EnableAsync//开启异步方法调用
@EnableCircuitBreaker//启动服务降级熔断
@PropertySource(value = "classpath:eccsservice-${spring.profiles.active}.properties")
public class EccsApplication {

	public static void main(String[] args) {
			SpringApplication.run(EccsApplication.class, args);

	}

}
